package com.devhelper.examples.gef.command;

import org.eclipse.draw2d.geometry.Rectangle;

import com.devhelper.examples.gef.model.Department;

public class DepartmentChangeLayoutCommand extends AbstractLayoutCommand {
    private Department model;
    private Rectangle layout;

    @Override
    public void execute() {
        model.setLayout(layout);
    }

    @Override
    public void setConstraint(Rectangle rect) {
        layout = rect;
    }

    @Override
    public void setModel(Object model) {
        this.model = (Department) model;
    }

}
